def get_js_code_bak():
    return """
    (()=>{
        const el_fanyi = document.querySelector(\"div.sons[id^=fanyi] a[href^='javascript:fanyiShow']\");
        el_fanyi && el_fanyi.click();  
        const el_shangxi = document.querySelector(\"div.sons[id^=shangxi] a[href^='javascript:shangxiShow']\");
        el_shangxi && el_shangxi.click();
    })()
    """

def get_js_code():
    return """
    (()=>{
        const all_el_fanyi = document.querySelectorAll(\"div.sons[id^=fanyi] a[href^='javascript:fanyiShow']\");
        for(const el_fanyi of all_el_fanyi) {
          el_fanyi && el_fanyi.click();    
        }
        
        const all_el_shangxi = document.querySelectorAll(\"div.sons[id^=shangxi] a[href^='javascript:shangxiShow']\");
        for(const el_shangxi of all_el_shangxi) {
          el_shangxi && el_shangxi.click();
        }
    })()
    """
    
